﻿@{
    Layout = null;
}
@model Freshbox2._0.MODEL.emplyinfo
<!DOCTYPE html>

<html>
<head>
    <link rel="shortcut icon" href="favicon.ico">
    <link rel="icon" type="image/gif" href="~/img/animated_favicon1.gif">
    <meta name="viewport" content="width=device-width" />
    <link href="~/UILibs/easyui/themes/default/easyui.css" rel="stylesheet" />
    <link href="~/UILibs/easyui/themes/icon.css" rel="stylesheet" />
    <link href="~/Css/css.css" rel="stylesheet" />

    <script src="~/Scripts/jquery-1.7.1.min.js"></script>
    <script src="~/UILibs/easyui/jquery.easyui.min.js"></script>
    <script src="~/UILibs/easyui/locale/easyui-lang-zh_CN.js"></script>

    <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
    <script src="~/Scripts/jquery.validate.min.js"></script>
    <script src="~/Scripts/jquery.validate.unobtrusive.js"></script>
    <title></title>
    <script type="text/javascript">
        //时间格式化 转化为 yyyy
        function format(str) {

            if (str != null) {
                var d = eval('new ' + str.substr(1, str.length - 2));
                var ar_date = [d.getFullYear(), d.getMonth() + 1, d.getDate()];
                for (var i = 0; i < ar_date.length; i++) ar_date[i] = dFormat(ar_date[i]);
                return ar_date.join('-');
                function dFormat(i) { return i < 10 ? "0" + i.toString() : i; }
            }
            else {
                return null;
            }
        }

        $(function () {
            $("#data").datagrid({
                fit: true,
                title: '公司内部人员信息列表',
                striped: true,
                rownumbers: true,
                columns:
                    [[{
                        field: 'ck',
                        checkbox: true
                    }, {
                        field: 'emplyID',
                        title: '编号',
                        width: 50,
                        height: 50,
                        halign: 'center',
                        sortable: true,
                        align: 'center'
                    }, {
                        field: 'emplyNumber',
                        title: '员工工号',
                        width: 80,
                        height: 50,
                        halign: 'center',
                        align: 'center',
                    }, {
                        field: 'emplyName',
                        title: '姓名',
                        width: 80,
                        height: 50,
                        halign: 'center',
                        align: 'center'
                    },{
                        field: 'emplyPhone',
                        title: '联系电话',
                        width: 120,
                        height: 50,
                        halign: 'center',
                        align: 'center'
                    }, {
                        field: 'password',
                        title: '密码',
                        width: 100,
                        height: 50,
                        halign: 'center',
                        align: 'center'
                    }, {
                        field: 'emplySex',
                        title: '性别',
                        width: 50,
                        height: 50,
                        halign: 'center',
                        align: 'center'
                    }, {
                        field: 'firstLevelDpt',
                        title: '一级部门',
                        width: 100,
                        height: 50,
                        halign: 'center',
                        align: 'center'
                    }, {
                        field: 'secondLevelDpt',
                        title: '二级部门',
                        width: 100,
                        height: 50,
                        halign: 'center',

                        align: 'center'
                    }, {
                        field: 'employJob',
                        title: '职务',
                        width: 100,
                        height: 50,
                        halign: 'center',
                        align: 'center',
                    }, {
                        field: 'entryTime',
                        title: '入职时间',
                        width: 100,
                        height: 50,
                        halign: 'center',
                        align: 'center',
                        formatter: format
                    }, {
                        field: 'workYears',
                        title: '工龄（年）',
                        width: 70,
                        height: 50,
                        halign: 'center',
                        align: 'center'
                    }, {
                        field: 'workYMD',
                        title: '工龄（年月日）',
                        width: 100,
                        height: 50,
                        halign: 'center',
                        align: 'center'
                    }, {
                        field: 'numOfSign',
                        title: '第几次签合同',
                        width: 80,
                        height: 50,
                        halign: 'center',
                        sortable: true,
                        align: 'center'
                    }, {
                        field: 'theLastSignDate',
                        title: '最近一次合同签订日期',
                        width: 120,
                        height: 50,
                        halign: 'center',
                        align: 'center',
                        formatter: format
                    }, {
                        field: 'contractLength',
                        title: '合同年限',
                        width: 80,
                        height: 50,
                        halign: 'center',
                        align: 'center'
                    }, {
                        field: 'contractExpireDate',
                        title: '合同到期日期',
                        width: 120,
                        height: 50,
                        halign: 'center',
                        align: 'center',
                        formatter: format
                    }, {
                        field: 'emplyCardID',
                        title: '身份证号',
                        width: 150,
                        height: 50,
                        halign: 'center',
                        align: 'center'
                    }, {
                        field: 'emplyBornDate',
                        title: '出生年月',
                        width: 100,
                        height: 50,
                        halign: 'center',
                        align: 'center'
                    }, {
                        field: 'emplyAge',
                        title: '年龄',
                        width: 80,
                        height: 50,
                        halign: 'center',
                        align: 'center'
                    }, {
                        field: 'emplyJiGuan',
                        title: '籍贯',
                        width: 180,
                        height: 50,
                        halign: 'center',
                        align: 'center'
                    }, {
                        field: 'huJiPlace',
                        title: '户籍所在地',
                        width: 180,
                        height: 50,
                        halign: 'center',
                        align: 'center',
                    }, {
                        field: 'emplyAddress',
                        title: '现住址',
                        width: 180,
                        height: 50,
                        halign: 'center',
                        align: 'center'
                    }, {
                        field: 'emplyNation',
                        title: '民族',
                        width: 80,
                        height: 50,
                        halign: 'center',
                        align: 'center'
                    }, {
                        field: 'graduatUniversity',
                        title: '毕业院校',
                        width: 150,
                        height: 50,
                        halign: 'center',
                        align: 'center'
                    }, {
                        field: 'emplyMajor',
                        title: '专业',
                        width: 150,
                        height: 50,
                        halign: 'center',
                        sortable: true,
                        align: 'center'
                    }, {
                        field: 'emplyDegree',
                        title: '学历',
                        width: 100,
                        height: 50,
                        halign: 'center',
                        align: 'center',
                    }, {
                        field: 'emplyMarryState',
                        title: '婚姻状况',
                        width: 80,
                        height: 50,
                        halign: 'center',
                        align: 'center'
                    }, {
                        field: 'emplyPolityFace',
                        title: '政治面貌',
                        width: 80,
                        height: 50,
                        halign: 'center',
                        align: 'center'
                    },
                        {
                            field: 'emergencyContact',
                            title: '紧急联系人',
                            width: 100,
                            height: 50,
                            halign: 'center',
                            align: 'center'
                        },
                        {
                            field: 'contactPhone',
                            title: '紧急联系人电话',
                            width: 120,
                            height: 50,
                            halign: 'center',
                            align: 'center'
                        }, {
                            field: 'workForm',
                            title: '用工形式',
                            width: 80,
                            height: 50,
                            halign: 'center',
                            align: 'center'
                        },
                        {
                            field: 'probationTime',
                            title: '试用期(月)',
                            width: 80,
                            height: 50,
                            halign: 'center',
                            align: 'center'
                        }, {
                            field: 'isBecome',
                            title: '是否转正',
                            width: 80,
                            height: 50,
                            halign: 'center',
                            align: 'center'
                        }, {
                            field: 'isManager',
                            title: '是否管理员',
                            width: 80,
                            height: 50,
                            halign: 'center',
                            align: 'center'
                        }, {
                            field: 'actuallyBecomeDate',
                            title: '实际转正日期',
                            width: 150,
                            height: 50,
                            halign: 'center',
                            align: 'center',
                            formatter: format
                        }, {
                            field: 'mark',
                            title: '备注',
                            width: 80,
                            height: 50,
                            halign: 'center',
                            align: 'center'
                        }]],
                url: pageConfig.getAction,
                pagination: true,
                pageSize: 25,
                pageList: [25, 30, 35],
                sortName: 'emplyID',
                sortOrder: 'desc',
                toolbar: '#tool'
            });
            $("#formdialog").dialog({
                width: 500,
                height: 500,
                closed: true,
                modal: true,
                buttons: '#btns'
            });
        });
        var pageConfig = {
            type: null,
            getAction: '@Url.Action("Get")',
            saveAction: '@Url.Action("Save")',
            delAction: '@Url.Action("Delete")',
            modifyAction: '@Url.Action("Modify")',
            getOneAction: '@Url.Action("GetOnlyOne")',
        };

        ///禁用用户   状态改变      
        function del() {

            var rows = $("#data").datagrid("getSelections")
            if (rows.length <= 0) {
                $.messager.alert("禁用用户", "没有选中的行", "info");
                return;
            }
            $.messager.confirm("确定操作", "您确定要禁用该用户吗？", function (flag) {
                if (flag) {
                    var idsStr = rows[0].emplyID;
                    $.ajax({
                        url: pageConfig.delAction,
                        data: { id: idsStr },
                        dataType: "json",
                        type: "POST",
                        beforeSend: function () {
                            before();
                        },
                        success: function (data) {
                            success(data);
                        },
                        error: function () {
                            error();
                        },
                        complete: function () {
                            complete();
                        }
                    });
                }
            })
        }
        //弹出框 
        function alertFormDialog(type) {
            pageConfig.type = type;
            $("#formdialog form").form("reset");
            if (type == 1) {
                $("#formdialog").dialog("open");
                $("#formdialog").dialog("setTitle", "添加");
                $("#formdialog form").attr("action", pageConfig.saveAction);
            }
            else {
                var rows = $("#data").datagrid("getSelections");

                if (rows.length != 1) {
                    $.messager.alert("提示", "修改时必须且只能选中一条记录！", "info");
                }
                if (rows[0].state == 1) {
                    $.messager.alert("提示", "此用户已经被禁用！不能进行修改", "info");
                }
                else {

                    $("#formdialog").dialog("open");
                    $("#formdialog").dialog("setTitle", "修改");
                    $('#adminUsername').attr("disabled", true);//不可编辑
                    $.ajax({
                        async: false,
                        url: pageConfig.getOneAction + "?id=" + rows[0].emplyID,
                        dataType: "json",
                        type: "POST",
                        success: function (data) {
                            //alert(data.entryTime);
                            $("#formdialog input[name='emplyID']").val(data.emplyID);
                            $("#emplyNumber").val(data.emplyNumber);
                            $("#emplyName").val(data.emplyName);
                            $("#emplySex").combobox('setValue', data.emplySex);
                            $("#firstLevelDpt").val(data.firstLevelDpt);
                            $("#secondLevelDpt").val(data.secondLevelDpt);
                            $("#employJob").val(data.employJob);
                            $('#entryTime').datebox('setValue', format(data.entryTime));
                            $("#numOfSign").val(data.numOfSign);
                            $("#theLastSignDate").val(data.theLastSignDate);
                            $("#contractLength").val(data.contractLength);
                            $("#emplyCardID").val(data.emplyCardID);
                            $("#emplyJiGuan").val(data.emplyJiGuan);
                            $("#huJiPlace").val(data.huJiPlace);
                            $("#emplyAddress").val(data.emplyAddress);
                            $("#emplyNation").combobox('setValue', data.emplyNation);
                            $("#graduatUniversity").val(data.graduatUniversity);
                            $("#emplyMajor").val(data.emplyMajor);
                            $("#emplyDegree").combobox('setValue', data.emplyDegree);
                            $("#emplyMarryState").combobox('setValue', data.emplyMarryState);
                            $("#emplyPolityFace").combobox('setValue', data.emplyPolityFace);
                            $("#workForm").combobox('setValue', data.workForm);
                            $("#isBecome").combobox('setValue', data.isBecome);
                            $("#emplyPhone").val(data.emplyPhone);
                            $("#emergencyContact").val(data.emergencyContact);
                            $("#contactPhone").val(data.contactPhone);
                            $("#probationTime").val(data.probationTime);
                            $("#actuallyBecomeDate").val(data.actuallyBecomeDate);
                            $("#mark").val(data.mark);
                        }
                    });
                }
            }
        }

        function closeDptDialog() {
            $("#formdialog").dialog("close")
        }
        //点击保存按钮   $("#emplyNumber").val() != null && $("#emplyNumber").val() != "" &&
        function save() {
            if ( $("#emplyName").val() != null && $("#emplyName").val() != "") {
                var bool = $("#fm").form("validate");
                if (bool) {
                    var rows = $("#data").datagrid("getSelections");
                    var data;
                    if (pageConfig.type == 1) {
                        url = pageConfig.saveAction;
                        data = {
                            workYMD: work(),
                            emplyBornDate: getBirthdayFromIdCard($("#emplyCardID").val()),
                            emplyID: $("#formdialog input[name='emplyID']").val(),
                            emplyNumber: $("#emplyNumber").val(),
                            emplyName: $("#emplyName").val(),
                            emplySex: $("#emplySex").combobox('getValue'),
                            firstLevelDpt: $("#firstLevelDpt").val(),
                            secondLevelDpt: $("#secondLevelDpt").val(),
                            employJob: $("#employJob").val(),
                            entryTime: $("#entryTime").val(),
                            numOfSign: $("#numOfSign").val(),
                            theLastSignDate: $("#theLastSignDate").val(),
                            contractLength: $("#contractLength").val(),
                            emplyCardID: $("#emplyCardID").val(),
                            emplyJiGuan: $("#emplyJiGuan").val(),
                            huJiPlace: $("#huJiPlace").val(),
                            emplyAddress: $("#emplyAddress").val(),
                            emplyNation: $("#emplyNation").combobox('getValue'),
                            graduatUniversity: $("#graduatUniversity").val(),
                            emplyMajor: $("#emplyMajor").val(),
                            emplyDegree: $("#emplyDegree").combobox('getValue'),
                            emplyMarryState: $("#emplyMarryState").combobox('getValue'),
                            emplyPolityFace: $("#emplyPolityFace").combobox('getValue'),
                            emplyPhone: $("#emplyPhone").val(),
                            emergencyContact: $("#emergencyContact").val(),
                            contactPhone: $("#contactPhone").val(),
                            workForm: $("#workForm").combobox('getValue'),
                            probationTime: $("#probationTime").val(),
                            actuallyBecomeDate: $("#actuallyBecomeDate").val(),
                            mark: $("#mark").val(),
                            isBecome: $("#isBecome").combobox('getValue'),
                        };
                    }
                    else {
                        url = pageConfig.modifyAction;
                        data = {
                            workYMD: work(),
                            emplyBornDate: getBirthdayFromIdCard($("#emplyCardID").val()),
                            emplyID: $("#formdialog input[name='emplyID']").val(),
                            emplyNumber: $("#emplyNumber").val(),
                            emplyName: $("#emplyName").val(),
                            emplySex: $("#emplySex").val(),//$("#emplySex").combobox('getValue'),
                            firstLevelDpt: $("#firstLevelDpt").val(),
                            secondLevelDpt: $("#secondLevelDpt").val(),
                            employJob: $("#employJob").val(),
                            entryTime: $("#entryTime").val(),
                            numOfSign: $("#numOfSign").val(),
                            theLastSignDate: $("#theLastSignDate").val(),
                            contractLength: $("#contractLength").val(),
                            emplyCardID: $("#emplyCardID").val(),
                            emplyJiGuan: $("#emplyJiGuan").val(),
                            huJiPlace: $("#huJiPlace").val(),
                            emplyAddress: $("#emplyAddress").val(),
                            emplyNation: $("#emplyNation").val(),// $("#emplyNation").combobox('getValue'),
                            graduatUniversity: $("#graduatUniversity").val(),
                            emplyMajor: $("#emplyMajor").val(),
                            emplyDegree: $("#emplyDegree").val(),//$("#emplyDegree").combobox('getValue'),
                            emplyMarryState: $("#emplyMarryState").val(),// $("#emplyMarryState").combobox('getValue'),
                            emplyPolityFace: $("#emplyPolityFace").val(),// $("#emplyPolityFace").combobox('getValue'),
                            emplyPhone: $("#emplyPhone").val(),
                            emergencyContact: $("#emergencyContact").val(),
                            contactPhone: $("#contactPhone").val(),
                            workForm: $("#workForm").val(),// $("#workForm").combobox('getValue'),
                            probationTime: $("#probationTime").val(),
                            actuallyBecomeDate: $("#actuallyBecomeDate").val(),
                            mark: $("#mark").val(),
                            isBecome: $("#isBecome").val(),
                            //authoritys: $("#name").combobox('getValue'),
                            //name: $("#name").combobox('getText')
                            //https://blog.csdn.net/qq_24821203/article/details/76707905 $('#programType').combobox('getValue')获取的值为textField值。
                        };
                    }
                    $.ajax({
                        url: url,
                        dataType: "json",
                        data: data,
                        type: "POST",
                        beforeSend: function () {
                            $.messager.progress({ title: "执行中", text: "" });
                        },
                        success: function (data) {
                            $.messager.alert("成功", data.msg, "info");
                        },
                        error: function (data) {
                            $.messager.alert("警告", "系统故障", "error", "")
                        },
                        complete: function () {

                            complete();
                        }
                    });
                }
            }
            else {
                $.messager.alert("信息录入不完整", "信息录入不完整", "info");
            }
        }

        function searchData() {
            $("#data").datagrid('load', {
                emplyName: $("#txtName").val()

            });
        }

        //检查是不是两位数字，不足补全
        function check(str) {
            str = str.toString();
            if (str.length < 2) {
                str = '0' + str;
            }
            return str;
        }

        //计算工龄  几年几月几日
        function work() {
            // alert($("#entryTime").val());
            console.log($("#entryTime").val());
            if ($("#entryTime").val() != "" && $("#entryTime").val() != null) {
                //alert(2222);
                var abc = new Date();
                var a = new Date(abc.getFullYear(), abc.getMonth() + 1, abc.getDate());
                var entry = new Date($("#entryTime").val());
                //alert(entry);
                var b = new Date(entry.getFullYear(), entry.getMonth() + 1, entry.getDate());
                a = a.valueOf();
                b = b.valueOf();
                var c = a - b;
                c = new Date(c);
                var work = c.getFullYear() - 1970 + '年' + (c.getMonth()) + '个月' + (c.getDate() - 1) + '天';
                return work;
            }
        }
        //提取身份证中的 出生日期
        function getBirthdayFromIdCard(idCard) {
            var birthday = "";
            if (idCard != null && idCard != "") {
                if (idCard.length == 15) {
                    birthday = "19" + idCard.substr(6, 6);
                } else if (idCard.length == 18) {
                    birthday = idCard.substr(6, 8);
                }

                birthday = birthday.replace(/(.{4})(.{2})/, "$1-$2-");
            }
            return birthday;
        }
        //判断手机号码是否正确
        function checkSubmitMobil1() {
            var reg = /(1[3-9]\d{9}$)/;
            if (!reg.test($("#emplyPhone").val())) {
                $.messager.alert("警告", "员工手机号码格式不正确")
            }
        }
        function checkSubmitMobil2() {
            var reg = /(1[3-9]\d{9}$)/;
            if (!reg.test($("#contactPhone").val())) {
                $.messager.alert("警告", "紧急联系人手机号码格式不正确")
            }

        }
        //验证身份证号码是否正确
        function checkIdentity() {
            var reg = /^[1-9]{1}[0-9]{14}$|^[1-9]{1}[0-9]{16}([0-9]|[xX])$/;
            if (!reg.test($("#emplyCardID").val())) {
                $.messager.alert("警告", "身份证格式不正确")
                return false;
            }
        }

        function before() {
            $.messager.progress({ title: "执行中", text: "" });
        }
        function success(data) {
            $.messager.alert("成功", data.msg, "info");
        }
        function error() {

            $.messager.alert("警告", "系统故障", "error", "")
        }
        function complete() {
            $("#data").datagrid("load");
            $.messager.progress("close");
            $("#formdialog").dialog("close");
        }
    </script>
</head>
<body class="easyui-layout" style="width: 100%; height: 100%">
    <div data-options="region:'center'">
        <table id="data"></table>
        <div id="tool" style="padding: 10px;">
            <div style="margin-bottom: 10px;">
                <div style="margin-bottom: 10px;">
                    &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp 
                    <a class="easyui-linkbutton" iconcls="icon-add" style="width: 150px; height: 50px;" onclick="alertFormDialog(1)">添加人员</a> &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp 
                    <a class="easyui-linkbutton" iconcls="icon-edit" style="width: 150px; height: 50px;" onclick="alertFormDialog(2)">修改员工信息</a> &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp 
                    <a class="easyui-linkbutton" iconcls="icon-remove" style="width: 150px; height: 50px;" onclick="del()">删除员工信息</a>
                    &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp 
                员工姓名：<input id="txtName" style="width: 180px; height: 25px; margin-top: 15px" type="text" oninput="searchData()" />
                    &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp 
                <a class="easyui-linkbutton" iconcls="icon-search" onclick="searchData()">查询</a>
                </div>
            </div>
        </div>
    </div>

    <div id="formdialog">
        @using (Ajax.BeginForm(new AjaxOptions
        {
            OnBegin = "before",
            OnComplete = "complete",
            OnSuccess = "success",
            OnFailure = "error",
            HttpMethod = "Post"
        }))
        {
            <div class="dialog-table">
                <form id="fm" method="post">
                    @Html.HiddenFor(x => x.emplyID)
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tk_table">
                        <tr>
                            <td>员工工号 data-options="required:true"：</td>
                            <td class="white-tr">
                                <input class="easyui-validatebox" id="emplyNumber"  /></td>
                        </tr>
                        <tr>
                            <td>员工姓名：</td>
                            <td class="white-tr">
                                <input class="easyui-validatebox" id="emplyName" /></td>
                        </tr>
                        <tr>
                            <td>性别：</td>
                            <td class="white-tr">
                                <select class="easyui-combobox" id="emplySex" style="width: 150px">
                                    <option value="1">女</option>
                                    <option value="2">男</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>一级部门：</td>
                            <td class="white-tr">
                                <input class="easyui-validatebox" id="firstLevelDpt" /></td>
                        </tr>
                        <tr>
                            <td>二级部门：</td>
                            <td class="white-tr">
                                <input class="easyui-validatebox" id="secondLevelDpt" /></td>
                        </tr>
                        <tr>
                            <td>职务：</td>
                            <td class="white-tr">
                                <input class="easyui-validatebox" id="employJob" /></td>
                        </tr>
                        <tr>
                            <td>入职日期：</td>
                            <td class="white-tr">
                                <input class="easyui-datebox" id="entryTime" /></td>
                        </tr>
                        <tr>
                            <td>第几次签合同：</td>
                            <td class="white-tr">
                                <input class="easyui-validatebox" id="numOfSign" /></td>
                        </tr>
                        <tr>
                            <td>最近一次合同签订日期：</td>
                            <td class="white-tr">
                                <input class="easyui-datebox" id="theLastSignDate" /></td>
                        </tr>
                        <tr>
                            <td>合同年限：</td>
                            <td class="white-tr">
                                <input class="easyui-validatebox" id="contractLength" /></td>
                        </tr>
                        <tr>
                            <td>身份证号：</td>
                            <td class="white-tr">
                                <input class="easyui-validatebox" id="emplyCardID" onchange="checkIdentity()" /></td>
                        </tr>
                        <tr>
                            <td>籍贯：</td>
                            <td class="white-tr">
                                <input class="easyui-validatebox" id="emplyJiGuan" /></td>
                        </tr>
                        <tr>
                            <td>户籍所在地：</td>
                            <td class="white-tr">
                                <input class="easyui-validatebox" id="huJiPlace" /></td>
                        </tr>
                        <tr>
                            <td>现住址：</td>
                            <td class="white-tr">
                                <input class="easyui-validatebox" id="emplyAddress" /></td>
                        </tr>
                        <tr>
                            <td>民族：</td>
                            <td class="white-tr">
                                <select class="easyui-combobox" id="emplyNation" name="name" style="width: 150px">
                                    <option value="1">汉族</option>
                                    <option value="2">回族</option>
                                    <option value="3">满族</option>
                                    <option value="4">其他</option>
                                </select>
                        </tr>
                        <tr>
                            <td>毕业院校：</td>
                            <td class="white-tr">
                                <input class="easyui-validatebox" id="graduatUniversity" /></td>
                        </tr>
                        <tr>
                            <td>专业：</td>
                            <td class="white-tr">
                                <input class="easyui-validatebox" id="emplyMajor" /></td>
                        </tr>
                        <tr>
                            <td>学历：</td>
                            <td class="white-tr">
                                <select class="easyui-combobox" id="emplyDegree" style="width: 150px">
                                    <option value="1">博士</option>
                                    <option value="2">硕士</option>
                                    <option value="3">本科</option>
                                    <option value="4">大专</option>
                                    <option value="5">中专</option>
                                    <option value="6">高中</option>
                                    <option value="7">初中</option>
                                    <option value="0">其他</option>
                                </select>
                        </tr>
                        <tr>
                            <td>婚姻状况：</td>
                            <td class="white-tr">
                                <select class="easyui-combobox" id="emplyMarryState" style="width: 150px">
                                    <option value="0">未婚</option>
                                    <option value="1">已婚</option>
                                </select>
                        </tr>
                        <tr>
                            <td>政治面貌：</td>
                            <td class="white-tr">
                                <select class="easyui-combobox" id="emplyPolityFace" placeholder="请输入手机号" style="width: 150px">
                                    <option value="1">群众</option>
                                    <option value="2">党员</option>
                                    <option value="0">其他</option>
                                </select>
                        </tr>
                        <tr>
                            <td>联系电话 data-options="required:true"：</td>
                            <td class="white-tr">
                                <input class="easyui-validatebox" id="emplyPhone"  onchange="checkSubmitMobil1()" /></td>
                        </tr>
                        <tr>
                            <td>紧急联系人：</td>
                            <td class="white-tr">
                                <input class="easyui-validatebox" id="emergencyContact" /></td>
                        </tr>
                        <tr>
                            <td>紧急联系人电话：</td>
                            <td class="white-tr">
                                <input class="easyui-validatebox" id="contactPhone" onchange="checkSubmitMobil2()" /></td>
                        </tr>
                        <tr>
                            <td>用工形式：</td>
                            <td class="white-tr">
                                <select class="easyui-combobox" id="workForm" style="width: 150px">
                                    <option value="1">全日制</option>
                                    <option value="2">兼职</option>
                                    <option value="0">其他</option>
                                </select>
                        </tr>
                        <tr>
                            <td>试用期（月）：</td>
                            <td class="white-tr">
                                <input class="easyui-validatebox" id="probationTime" /></td>
                        </tr>
                        <tr>
                            <td>是否转正：</td>
                            <td class="white-tr">
                                <select class="easyui-combobox" id="isBecome" style="width: 150px">
                                    <option value="0">否</option>
                                    <option value="1">是</option>
                                </select>
                        </tr>
                        <tr>
                            <td>实际转正日期：</td>
                            <td class="white-tr">
                                <input class="easyui-datebox" id="actuallyBecomeDate" /></td>
                        </tr>
                        <tr>
                            <td>备注：</td>
                            <td class="white-tr">
                                <input class="easyui-validatebox" id="mark" /></td>
                        </tr>
                    </table>
                </form>
            </div>
        }
    </div>

    <div id="btns">
        <div style="margin-bottom: 10px">
            <a class="easyui-linkbutton" iconcls="icon-redo" onclick="closeDptDialog()">取消</a>
            <a class="easyui-linkbutton" iconcls="icon-add" onclick="save()">保存</a>
        </div>
    </div>

</body>
</html>
